const damageMap = new Map<string, number>([
  ["wooden_axe", 7],
  ["wooden_hoe", 1],
  ["wooden_pickaxe", 2],
  ["wooden_shovel", 2.5],
  ["wooden_sword", 4],

  ["stone_axe", 9],
  ["stone_hoe", 1],
  ["stone_pickaxe", 3],
  ["stone_shovel", 3.5],
  ["stone_sword", 5],

  ["iron_axe", 9],
  ["iron_hoe", 1],
  ["iron_pickaxe", 4],
  ["iron_shovel", 4.5],
  ["iron_sword", 6],

  ["golden_axe", 7],
  ["golden_hoe", 1],
  ["golden_pickaxe", 2],
  ["golden_shovel", 2.5],
  ["golden_sword", 4],

  ["diamond_axe", 9],
  ["diamond_hoe", 1],
  ["diamond_pickaxe", 5],
  ["diamond_shovel", 5.5],
  ["diamond_sword", 7],

  ["netherite_axe", 10],
  ["netherite_hoe", 1],
  ["netherite_pickaxe", 6],
  ["netherite_shovel", 6.5],
  ["netherite_sword", 8],

  ["mace", 6],
  ["trident", 9],
]);

export function getDamage(itemName: string): number {
  return damageMap.get(itemName) ?? 0;
}
